﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MQTTServer.Model.UDPEvents
{
    public class ExceptionEventArgs : EventArgs
    {
        private string m_exceptionMessage;

        public ExceptionEventArgs(Exception exception)
        {
            m_exceptionMessage = exception.Message;
        }
        public ExceptionEventArgs(string str,Exception exception)
        {
            m_exceptionMessage = str+"："+ exception.StackTrace+ exception.Message;
        }

        public ExceptionEventArgs(string exceptionMessage)
        {
            m_exceptionMessage = exceptionMessage;
        }

        public string ExceptionMessage
        {
            get { return m_exceptionMessage; }
        }
    }
}
